package com.micro.ai.models.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 模型定义响应DTO
 * 
 * @author micro-ai
 * @since 0.0.1
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "模型定义信息")
public class ModelDefinitionDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "模型ID")
    private String id;

    @Schema(description = "租户ID")
    private String tenantId;

    @Schema(description = "模型名称")
    private String modelName;

    @Schema(description = "模型别名")
    private String modelAlias;

    @Schema(description = "供应商ID")
    private String vendorId;

    @Schema(description = "供应商名称")
    private String vendorName;

    @Schema(description = "类型ID")
    private String typeId;

    @Schema(description = "类型名称")
    private String typeName;

    @Schema(description = "上下文长度（最大token数）")
    private Integer contextLength;

    @Schema(description = "最大输出token数")
    private Integer maxOutputTokens;

    @Schema(description = "是否支持函数调用")
    private Boolean supportFunctions;

    @Schema(description = "是否支持视觉（图片理解）")
    private Boolean supportVision;

    @Schema(description = "是否支持微调")
    private Boolean supportFineTuning;

    @Schema(description = "支持的微调方法（JSON格式）")
    private String fineTuningMethods;

    @Schema(description = "描述")
    private String description;

    @Schema(description = "模型元数据（JSON格式）")
    private String modelMetadata;

    @Schema(description = "状态（active-活跃，deprecated-已弃用，beta-测试版）")
    private String status;

    @Schema(description = "发布日期")
    private LocalDate releaseDate;

    @Schema(description = "创建人ID")
    private String createdBy;

    @Schema(description = "创建时间")
    private LocalDateTime createdAt;

    @Schema(description = "更新时间")
    private LocalDateTime updatedAt;
}

